#ifndef _YEP_ENGINE_COLLISION_EVENT_HPP
#define _YEP_ENGINE_COLLISION_EVENT_HPP

#include "../common.hpp"
#include "event.hpp"

namespace yep
{
class Game;             // Foward.
class Scene;            // Foward.
class CollisionHandler; // Foward.

/**
 * @brief Happens when two CollisionHandlers colides each other.
 **/
class CollisionEvent: public Event
{
public:
    CollisionEvent( Game &game, Scene2d &scene, CollisionHandler &other_ ): Event( game, scene ), other( other_ ) {}
    virtual ~CollisionEvent() {}

    /**
     * @brief Returns the other.
     **/
    CollisionHandler &getOther( void ) const {
        return other;
    }
private:
    CollisionHandler &other;
};

}

#endif // _YEP_ENGINE_COLLISION_EVENT_HPP

